<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
  <head><title>MyIsern - Main Menu</title></head>
 <body>

  <div id="imageHeader">
    <table style="padding: 5px; margin: 0px; width: 100%;">
        <tr>
            <td id="pageHeader"><font size="5">MyIsern Main menu (Home) </font></td><br><br>
        </tr>
    </table>
    <div id="navLinks">
        <stripes:link href="/addResearcher.jsp">Add New Researcher</stripes:link><br>
        <stripes:link href="/addOrganization.jsp">Add New Organization</stripes:link><br>
        <stripes:link href="/addCollaboration.jsp">Add New Collaboration</stripes:link><br>
        <stripes:link href="/displayResearchers.jsp">Print Researchers</stripes:link><br>
        <stripes:link href="/displayOrganizations.jsp">Print Organizations</stripes:link><br>
        <stripes:link href="/displayCollaborations.jsp">Print Collaborations</stripes:link>
    </div>

    
      <stripes:form id="MainMenuForm" action="/EditResearcher.action">
     <table>
        <tr>
           <td>Enter A Researcher to Edit:</td>
        </tr>
        <tr>
            <td><stripes:text style="width: 500px;" name="possibleResearcherName"/></td> 
           <td style="text-align: center;">
              <%-- If the security servlet attached a targetUrl, carry that along. --%>
              <stripes:hidden name="targetUrl" value="${request.parameterMap['targetUrl']}"/>
              <stripes:submit name="preEditResearcher" value="Edit Researcher"/>
           </td>
        </tr>
        </stripes:form>
        <stripes:form id="MainMenuForm" action="/EditOrganization.action">
        <tr>
           <br> <td>Enter an Organization to Edit:</td>
        </tr>
        <tr>
            <td><stripes:text style="width: 500px;" name="possibleOrganizationName"/></td> 
           <td style="text-align: center;">
              <%-- If the security servlet attached a targetUrl, carry that along. --%>
              <stripes:hidden name="targetUrl" value="${request.parameterMap['targetUrl']}"/>
              <stripes:submit name="preEditOrganization" value="Edit Organization"/>
           </td>
        </tr>
        </stripes:form>
        <stripes:form id="MainMenuForm" action="/EditCollaboration.action">
                <tr>
            <br><td>Enter a Collaboration to Edit:</td>
        </tr>
                <tr>
            <td><stripes:text style="width: 500px;" name="possibleCollaborationName"/></td> 
           <td style="text-align: center;">
              <%-- If the security servlet attached a targetUrl, carry that along. --%>
              <stripes:hidden name="targetUrl" value="${request.parameterMap['targetUrl']}"/>
              <stripes:submit name="preEditCollaboration" value="Edit Collaboration"/>
           </td>
        </tr>
           </stripes:form>
     </table>
     <stripes:link href="/index.jsp">Logout</stripes:link>

    

  </div>
  
<p>
<table id="ErrorMessageTable">
  <tr><td><font color="red">${actionBean.errorMessage}</font></td></tr>
</table>
 </body>
</html>
